package interface_oriented_programming;

import interface_oriented_programming.minterface.FlyBehavior;
import interface_oriented_programming.minterface.QuackBehavior;

public abstract class Duck {
	FlyBehavior flyBehavior;
	QuackBehavior quackBehavior;
	public Duck(){
		
	}
	public abstract void display();
	public void performFly(){
		flyBehavior.fly();
	}
	public void performQuack(){
		quackBehavior.quack();
	}
	public void swim(){
		System.out.println("All ducks float,even decoys");
	}
}
